<?php

class General_Controller_Action extends Zend_Controller_Action {
	protected $layout;

	public function init() {
		if (empty($this->view->debug)) {
			$this->view->debug = array();
		}
		$helper_path = LIBRARY_PATH.'/General/View/Helper';
		$this->view->addHelperPath($helper_path,'General_View_Helper');
		$this->view->addScriptPath(APPLICATION_PATH.'/modules/default/views/helpers');
		$this->view->addScriptPath(APPLICATION_PATH.'/modules/'.$this->_request->getModuleName().'/views/helpers');
		$this->layout = Zend_Layout::getMvcInstance();
		parent::init();
	}
}